<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Binicare</title>
<script src="js/jquery-1.11.0.min.js"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>

<div class="logo">
	<img src="img/logo.png">
</div>

<div class="votenotice">Which color you prefer for this waterflosser？</div>

<div class="votelist" id="votelist">
	<div class="voteinner"><img src="img/WF01.png"></div>
	<div class="voteinner"><img src="img/WF02.png"></div>
	<div class="voteinner"><img src="img/WF03.png"></div>
	<div class="voteinner"><img src="img/WF04.png"></div>
	<div class="voteinner"><img src="img/WF05.png"></div>
	<div class="voteinner"><img src="img/WF06.png"></div>
	<div class="voteinner"><img src="img/WF07.png"></div>
	<div class="voteinner"><img src="img/WF08.png"></div>
	<div class="voteinner"><img src="img/WF09.png"></div>
</div>	

<div class="votebsub">
	<button class="votebtn">submit</button>
</div>

</body>
<script>
	function get_votes_list(){
		changeTab(pStatus)
		var dataform = {
			'status': pStatus,
		};
		$.ajax({
			url: "admin/Ajax/votes_list",
			data: dataform,
			type: "Post",
			async: false,
			cache: false,
			dataType: "json",
			success: function (res) {
				if (res.success == 1) {
					set_data(res.data);
					voteclick();
					return
				} else {
					return set_data('');
				}
			},
			error:function (result) {
				console.log(result)
			}
		})
	}

	function set_data(data) {
		var str = '';
		$.each(data, function (i, val) {
			str = str + '<div class="voteinner" data-id="'+val.id+'"><img src="'+val.logo+'"></div>';

		});
		str = str ? str : '';
		$("#votelist").html(str);
	}



</script>
</html>